package com.ode.demo2;

import com.ode.demo1.Base;

public class Der extends Base {
    String name;
    public Der(int a,String name){

        super(a);

        this.name = "李白";
        System.out.println("子类的构造方法执行！");

    }

    static {
        System.out.println("子类的静态代码块执行！");
    }

    {
        System.out.println("子类的实例代码块执行！");
    }

    public static void main(String[] args) {
        new Der(23,"zangsan");
        System.out.println("=============================");
        new Der(21,"lisi");
        Base base = new Base(10);


    }


}
